with open('b.txt','rt',encoding = 'utf8') as f:
    print(f.read())

# with  在合适的时候关闭文件